package com.education.mapper.system;

import com.education.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author Jason
 * @version 1.0.0
 * @date 2021-11-21 00:52
 */
public interface SystemRoleMenuMapper extends BaseMapper {

    /**
     * 查找角色关联的菜单
     * @param params 角色id集合
     * @return
     */
    List<Map> getMenuListByRoleIds(@Param("params") Map params);

    /**
     * 删除角色关联的菜单
     * @param roleId 角色id
     * @return
     */
    int deleteByRoleId(Integer roleId);

    /**
     * 批量删除角色关联的菜单
     * @param roleIds
     * @return
     */
    int batchDeleteByRoleIds(List<Integer> roleIds);
}
